package Model;


public class Machine
{
    private long serialNo;
    private String type;
    private long price;
    private String state;

   
    public Machine(long serialNo, String type, long price, String state)
    {
        this.serialNo=serialNo;
        this.type=type;
        this.price=price;
        this.state=state;
        MachineCont.getInstance();
        MachineCont.addMachine(this);
    }

    public void setSerialNo(long serialNo)
    {
        this.serialNo=serialNo;    
    }

    public void setType(String type)
    {
        this.type=type;
    }

    public void setPrice(long price)
    {
        this.price=price;
    }
    
    public void setState(String state)
    {
        this.state=state;
    }
    
    public long getSerialNo()
    {
        return serialNo;
    }
    
    public String getType()
    {
        return type;
    }
    
    public long getPrice()
    {
        return price;
    }
    
    public String getState()
    {
        return state;
    }


}
